package com.navinfo.platform.wbs.dto.condition;

import com.navinfo.platform.dataanalysis.dto.LocationDataPoint;

public class ExtractionCondition extends AbstractCondition {
    @Override
    protected boolean subCondition(LocationDataPoint point, Object... externalParam) {
        int acc = point.getAcc();
        int rotation = point.getRotation();
        int accPedalPos = point.getAccPedalPos();
        double speed = point.getSpeed();
        return !lastPoint && (acc > Integer.parseInt(param[0]) && speed == Integer.parseInt(param[1])
                    && accPedalPos == Integer.parseInt(param[2]) && rotation >= Integer.parseInt(param[3]));
    }
}
